<script type="text/javascript" src="../Public/Js/group.info.form.js" ></script>
<script>
	function addsubmit() {
		var verify = $('#verify').val();
		if (verify == "" || verify == undefined) {
			ui.error("请输入验证码");
			return ;
		}
		
		if (confirm('解散后无法恢复！确认解散？')) {
			var verify = $('input[name="verify"]').val()
			$.ajax({
	 			type: "POST",
	 			url: U('group/Group/delGroup'),
	 			data:   "gid={$gid}&verify=" + verify,
	 			success: function(msg){
	 				if (msg == '1') {
		 				$('#pop1').hide();
		 				$('#pop2').show();
	 				} else {
						ui.error(msg);
	 				}
	 			} 
			});
		}
	}
</script>

    <!--解散群组弹窗-->
    <dl class="pop_group" id="pop1">
        <dt class="left_text">解散后无法恢复！确认解</dt>
        <dd class="left_text">
      	<div>
      		<input name="verify" type="text" class="text" id="verify" style="width:70px;vertical-align:middle" />
	  		<img src="{:U('home/Public/verify')}" id="verifyimg" class="alM" />
      		<a href="javascript:void(0);" onclick="group_info.change_verify()" alt="换一张">看不清楚，换一个</a>
      	</div>
        </dd>
        <dd>
            <input name="input" type="button" class="btn_b" value="确 定" onclick="addsubmit();"/>
            <input name="input2" type="button" class="btn_w" value="取 消" onclick="javascript:ui.box.close();"/>
        </dd>
    </dl>
    
    <dl class="pop_group" id="pop2" style="display:none">
        <dt>解散群组成功</dt>
        <dd>
        <input name="input" type="button" class="btn_b" value="确 定" onclick="javascript:parent.window.location.href=U('group/SomeOne/index');ui.box.close();"/>
        </dd>
    </dl>
    <!--End 解散群组弹窗-->